Expand description
Rust bindings for CharLS, the implementation of the JPEG-LS standard for lossless and near-lossless image compression and decompression.
§Cargo features
static
: statically link CharLS. If this is not enabled, you need to install the CharLS (e.g.libcharls.so
) into your system or add it to your library path (LD_LIBRARY_PATH
).
§Example
use charls::CharLS;
// Read a JPEG-LS file
let data = std::fs::read("test.jls")?;
let mut charls = CharLS::default();
let decoded = charls.decode(&data)?;
Structs§
- CharLS codec instance
Enums§
- Error type for all high-level CharLS operations